
my_dict= {}   # dict

# 键值对    key : value
di = {'name':'tongyao',  'height':'179cm'}

# dic = {'姓名':['张三','李四'],'体重':[]}
# dic =[{},{},{}]

# print(di.setdefault('age','22'))
# print(di.setdefault('name','tangsan'))
# print(di)

di.update({'age':'23'})

di.update({'height':'177cm'})
# print(di)

# print(di.pop('age'))

# print(di.popitem())
# print(di)

# print(di.get('name'))

# print(list(di.keys()))  # 封装  继承 （鸭子类型）
# print(list(di.values()))
# print(list(di.items()))



# print(di)
#
# di['name'] = '三更'
# print(di)